<template>
  <div id="wrap">
    <el-button v-for="(item,index) in btnData" :key="index" :type="item.type" @click="btnClick(item._name)">{{ item.name }}</el-button>
  </div>
</template>

<script>
export default {
  name: "btn",
  data() {
    return {
    }
  },
  props: {
    btnData: {
      type: Array
    }
  },
  methods: {
    btnClick(info){
      this.$emit("btnClick", info)
    }
  }
}
</script>

<style>

</style>